#!/bin/bash

FILE=$1
DIR="."
GET=${DIR}/scripts/get_maintainer.pl

RED="\e[1;31m"
NONE="\e[0m"

files=$(awk '/ \| [0-9]+ \+/ {print '\$1'}' ${FILE})
for f in $files
do
   echo -ne '\n\n'
   echo -e "${RED}Maintainer for file: $f ${NONE}"
   echo 
   ${GET} -f $f
done
